import request from '@/utils/request'

//
export function getList(data) {
  return request({
    url: '/wms/wareHouseType/list',
    method: 'POST',
    data: data
  })
}

// 查询父级
export function findparentId() {
  return request({
    url: '/wms/wareHouseType/findparentId',
    headers: {
      isToken: false
    },
    method: 'GET',
  })
}

export function addType(data) {
  return request({
    url: '/wms/wareHouseType/add',
    method: 'post',
    data: data
  })
}
